﻿<%@ Page Language="C#" MasterPageFile="~/Custom.Master" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="Things.ThingsWeb.Login"  %>

<%@ Register src="Components/Login.ascx" tagname="Login" tagprefix="uc1" %>


<%@ Register src="Components/Register.ascx" tagname="Register" tagprefix="uc2" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">


<table width="716" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="10"></td>
  </tr>
</table>
<table width="973" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center"><asp:Image ImageUrl="~/Style/images/yj1.jpg" runat="server" width="972" height="15" /></td>
  </tr>
</table>
<table width="972" height="349" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="651" height="10" align="center" valign="top" bgcolor="#FFFFFF"><table width="159" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><asp:Image ImageUrl="~/Style/images/banner-3.jpg" runat="server" width="623" height="336" /></td>
      </tr>
    </table></td>
    <td width="321" align="left" valign="top" bgcolor="#FFFFFF">

        <uc1:Login ID="Login2" runat="server" />

        <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="10"></td>
        </tr>
      </table>

        <uc2:Register ID="Register1" runat="server" />
        

     </td>
  </tr>
</table>
<table width="716" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="5"></td>
  </tr>
</table>
<table width="716" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="12"></td>
  </tr>
</table>
   
        
   
<script type="text/javascript">
    /* login */
    // username field focus and blur event handlers
    $('#ctl00_ContentPlaceHolder1_Login2_txtUsername').focus(function () {
        if ($(this).val() == '邮箱/手机号') {
            $(this).val('');
        }
    });
    $('#ctl00_ContentPlaceHolder1_Login2_txtUsername').blur(function () {
        if ($(this).val() == '') {
            $(this).val('邮箱/手机号');
        }
    });


    // password field focus and blur event handlers
    $('#txtLoginPassword').focus(function () {
        $('#txtLoginPassword').hide();
        $('#ctl00_ContentPlaceHolder1_Login2_txtPass').show();
        $('#ctl00_ContentPlaceHolder1_Login2_txtPass').focus();
    });
    $('#ctl00_ContentPlaceHolder1_Login2_txtPass').blur(function () {
        if ($('#ctl00_ContentPlaceHolder1_Login2_txtPass').val() == '') {
            $('#txtLoginPassword').show();
            $('#ctl00_ContentPlaceHolder1_Login2_txtPass').hide();
        }
    });

    /* regesiter */
    // username field focus and blur event handlers
    $('#ctl00_ContentPlaceHolder1_Register1_txtAccount').focus(function () {
        if ($(this).val() == '邮箱/手机号') {
            $(this).val('');
        }
    });
    $('#ctl00_ContentPlaceHolder1_Register1_txtAccount').blur(function () {
        if ($(this).val() == '') {
            $(this).val('邮箱/手机号');
        }
    });

    // password field focus and blur event handlers
    $('#txtRegPassword').focus(function () {
        $('#txtRegPassword').hide();
        $('#ctl00_ContentPlaceHolder1_Register1_txtPassword').show();
        $('#ctl00_ContentPlaceHolder1_Register1_txtPassword').focus();
    });
    $('#ctl00_ContentPlaceHolder1_Register1_txtPassword').blur(function () {
        if ($('#ctl00_ContentPlaceHolder1_Register1_txtPassword').val() == '') {
            $('#txtRegPassword').show();
            $('#ctl00_ContentPlaceHolder1_Register1_txtPassword').hide();
        }
    });

    // confirm password field focus and blur event handlers
    $('#txtRegConfirmPassword').focus(function () {
        $('#txtRegConfirmPassword').hide();
        $('#ctl00_ContentPlaceHolder1_Register1_txtConfirmPassword').show();
        $('#ctl00_ContentPlaceHolder1_Register1_txtConfirmPassword').focus();
    });
    $('#ctl00_ContentPlaceHolder1_Register1_txtConfirmPassword').blur(function () {
        if ($('#ctl00_ContentPlaceHolder1_Register1_txtConfirmPassword').val() == '') {
            $('#txtRegConfirmPassword').show();
            $('#ctl00_ContentPlaceHolder1_Register1_txtConfirmPassword').hide();
        }
    });


</script>     
        
  
</asp:Content>

